home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Subject: Re: localtime
- X-Nntp-Posting-Host: foley.ripco.com
- Message-ID: <DLr4CB.8uv@rci.ripco.com>
- Sender: usenet@rci.ripco.com (Net News Admin)
- Organization: Ripco Internet BBS Chicago
- Date: Thu, 25 Jan 1996 19:19:22 GMT
- X-Ident-Sender: mambuhl
-
- wsog@softsite.co.at (Walter Sommergruber)
- in <61VnNPt6nTB@softsite.co.at> asks:
-
- >In ANSI C the function localtime returns a pointer to a struct tm.
- >The documentation of my compiler says
- >"tm.tm_year = Year (current year minus 1900)"
-
- >Is this defined behaviour ?
-
- Yes. See ISO/ANSI 7.12.1
-
- >Can I assume "tm_year+1900 = real year" will work also after the
- >year 2000 ? ...
-
- Yes
- >... Or is this compiler dependend ?
-
- Only if the compiler (actually library) is broken.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-